<?php if (!defined ('TYPO3_MODE')) 	die ('Access denied.'); ?>

<br /><hr /><br />

<h2>Example 5: Internal Links</h2>

<p>Url shortform (current page with PI vars):<br />
<?= $helper->url(array('param1' => 'abc', 'param2' => 123)) ?><br />
<br />
Url to certain page:<br />
<?= $helper->url()->toPage($this->id, array('param1' => 'abc', 'param2' => 123)) ?><br />
<br />
Url to current page:<br />
<?= $helper->url()->thisPage(array('param1' => 'abc', 'param2' => 123)) ?><br />
<br />
Url to current page with PI vars:<br />
<?= $helper->url()->thisPagePIvars(array('param1' => 'abc', 'param2' => 123)) ?></p>

<p>Link shortform (current page with PI vars): <?= $helper->link()->thisPagePIvars('link',  array('param' => 'abc')) ?><br />
Link to current page: <?= $helper->link()->thisPage('link', array('param1' => 'abc', 'param2' => 123)) ?><br />
Link to current page with PI vars: <?= $helper->link()->thisPagePIvars('link',  array('param1' => 'abc', 'param2' => 123)) ?></p>

<p>Popup link<br />
<?= $helper->popup($helper->link()->thisPage('This is a popup link')) ?></p>
